<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
  <title>查看职位历史详情</title>
  
  <script>
    $(document).ready(function() {
    });
  </script>
</head>

<body>
    <fieldset>
      <legend><small>查看职位历史详情</small></legend>
      <div class="control-group">
        <div class="controls">变更时间:    ${history.recordHrUser.name}变更于<fmt:formatDate value="${history.recordDate}" pattern="yyyy-MM-dd" /></div>
      </div>  
      <div class="control-group">
        <div class="controls">职位名称:    ${history.name}</div>
      </div>  
      <div class="control-group">
        <div class="controls">部门:    
            <c:if test="${not empty history.department and history.department.id != 0}">
              ${history.department.name}
            </c:if>
        </div>
      </div>
      <div class="control-group">
        <div class="controls">职位编号:    ${history.code}</div>
      </div>  
      <div class="control-group">
        <div class="controls">招聘人数:    ${history.count}</div>
      </div>  
      <div class="control-group">
        <div class="controls">工作地点（省）:    ${provinces[history.province].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">工作地点（市）:    ${cities[history.city].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">年龄:    ${history.minAge} 到 ${history.maxAge}</div>
      </div>  
      <div class="control-group">
        <div class="controls">职能类别  1:    
          <c:if test="${not empty history.posType}">${history.posType.name}</c:if>
        </div>
      </div>  
      <div class="control-group">
        <div class="controls">职能类别  2:    
          <c:if test="${not empty position.posType2}">${position.posType2.name}</c:if>
        </div>
      </div>  
      <div class="control-group">
        <div class="controls">语言 1:    ${languages[history.language].name}&nbsp;&nbsp;&nbsp;${proficiencys[history.proficiency].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">语言 2:    ${languages[history.language2].name}&nbsp;&nbsp;&nbsp;${proficiencys[history.proficiency2].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">学历:    ${educations[history.education].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">工作年限:    ${workingYears[history.workingYears].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">专业 1:    ${majors[history.major].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">专业 2:    ${majors[history.major2].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">月薪:    ${salaryRanges[history.salaryRange].name}</div>
      </div>
      <div class="control-group">
        <div class="controls">工作性质:    
          <c:if test="${position.jobType == 0}">全职</c:if>
          <c:if test="${position.jobType == 1}">兼职</c:if>
        </div>
      </div>
      <div class="control-group">
        <div class="controls">关键字:    ${position.keyword}</div>
      </div>  
      <div class="control-group">
        <div class="controls">职位描述/岗位要求:    ${position.description}</div>
      </div>  
      <div class="control-group">
        <div class="controls">职位描述/岗位要求(英文):    ${position.descriptionEng}</div>
      </div>  
      <div class="control-group">
        <div class="controls">排序:    ${position.order}</div>
      </div>  
      <div class="control-group">
        <div class="controls">每日投放限额:    ${position.quota}</div>
      </div>  

      <div class="form-actions">
        <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
      </div>
    </fieldset>
</body>
</html>
